package com.example.springfeature;

import com.dtflys.forest.springboot.annotation.ForestScan;
import com.example.springfeature.init.TestInitializingBean;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;


@Configuration
@ForestScan(basePackages = "com.example.springfeature.forest")
@EnableScheduling
@Slf4j
@EnableAsync // 开启 Spring 异步的功能
@SpringBootApplication
public class SpringFeatureApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpringFeatureApplication.class, args);
        log.debug("just do it");
    }

}
